<template>
  <div>
    <h1>One</h1>
    <h5>{{count}}</h5>
    <button @click="add">按钮</button>
  </div>
</template>wo

<script>
export default {
    name:"Two",
    data(){
        return{
            count :0
        }   
    },
    methods:{
        add(){
            this.count++
            this.$emit("shijain",this.count)
        }
    }
}
</script>

<style>

</style>